import { close, connect } from "../../util/mongo"
export default defineEventHandler(async (event) => {
      const {db,client} = await connect()
      const collection = db.collection('hejia')
     
      const result = await collection.find().toArray()
      close(client)
      return result
})
